package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.security.Permissions;
import java.util.List;

/**
 * @description:
 * @author: Zhangweichuang
 * @date: 2020/10/28-21:08
 * @Version: 1.0.0
 */
public interface RoleService {
    /**
     * 新建角色
     * @param role
     */
    void add(Role role, Integer[] permissionsIds);

    /**
     * 查找所有角色
     * @return
     */
    List<Permission> findAllRolePermission();

    PageResult findPage(QueryPageBean queryPageBean);


    Role findRoleById(Integer id);

    List<Integer> findPermissionById(Integer id);

    void edit(Role role, Integer[] permissionsIds);

    void delById(Integer id);
}
